<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>详情页面   教练员</title>
</head>
<body>
<style>
.detailpd { padding-top:10px; }
</style>
<script>

function getQueryParam(name) {
	debugger;
    var obj = $('#common-dialog').dialog('options');
    var queryParams = obj["queryParams"];
    return queryParams[name];
}
//自动填充值

function autoInput(obj){

 	$.each(obj, function(i, n){
	  //from 下的input
	 $("#coacheStaff-div-detail input[name="+i+"]").textbox({value:n});
	 //$("#coache-div-detail #"+i).html(n);
	});
}


$(function(){
	var _id  =getQueryParam("id");
	$.getJSON("CoachStaffServlet?method=edit",{id:_id},function(json){
		//自动添值
		autoInput(json);
	});	 
	$('#coacheStaff-div-detail input').attr('disabled','true')
 });
</script>
</head>
<body>

		<div class="datagrid-body" id="coacheStaff-div-detail">
			<table class="datagrid-btable" cellspacing="0" cellpadding="0"
				border="0" style="width: 100%;">
				<tbody>
					<tr class="datagrid-row">
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">所属驾校</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="DdrivingSchoolName"
							class="easyui-validatebox" style="width: 266px">
						</td>
<!-- 					</tr> -->
<!-- 					<tr class="datagrid-row"> -->
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">教练姓名</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="coachName"
							class="easyui-validatebox" style="width: 266px">
						</td>
					</tr>
					<tr class="datagrid-row">
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">教练省份证号</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="coachIdCard"
							class="easyui-validatebox" style="width: 266px">
						</td>
<!-- 					</tr> -->
<!-- 					<tr class="datagrid-row"> -->
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">教练证号</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="coachNumber"
							class="easyui-validatebox" style="width: 266px">
						</td>
					</tr>
					 <tr class="datagrid-row">
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">学牌编码</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="learnCardNumber"
							class="easyui-validatebox" style="width: 266px">
						</td>
<!-- 					</tr> -->
<!-- 					 <tr class="datagrid-row"> -->
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">教练性别</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="coachSex"
							class="easyui-validatebox" style="width: 266px">
						</td>
					</tr>
					 <tr class="datagrid-row">
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">准教车型</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="mustTeachModels"
							class="easyui-validatebox" style="width: 266px">
						</td>
<!-- 					</tr> -->
<!-- 					 <tr class="datagrid-row"> -->
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">户籍地址</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="placeOfDomicile"
							class="easyui-validatebox" style="width: 266px">
						</td>
					</tr>
					 <tr class="datagrid-row">
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">省</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="province"
							class="easyui-validatebox" style="width: 266px">
						</td>
<!-- 					</tr> -->
<!-- 					 <tr class="datagrid-row"> -->
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">市</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="city"
							class="easyui-validatebox" style="width: 266px">
						</td>
					</tr>
					 <tr class="datagrid-row">
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">联系地址</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="contactAddress"
							class="easyui-validatebox" style="width: 266px">
						</td>
<!-- 					</tr> -->
<!-- 					 <tr class="datagrid-row"> -->
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">准教类别</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="mustTeachClasses"
							class="easyui-validatebox" style="width: 266px">
						</td>
					</tr>
					 <tr class="datagrid-row">
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">学历</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="learnHistory"
							class="easyui-validatebox" style="width: 266px">
						</td>
<!-- 					</tr> -->
<!-- 					 <tr class="datagrid-row"> -->
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">社保号</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="socialSecurityNumber"
							class="easyui-validatebox" style="width: 266px">
						</td>
					</tr>
					<!-- <tr class="datagrid-row">
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">修建人</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="createName" class="easyui-validatebox"
							style="width: 266px">
						</td>
					</tr>
					<tr class="datagrid-row">
						<td
							style="border-style: solid; width: 15%; text-align: right; padding-right: 7px">修改人</td>
						<td style="border-style: solid; width: 35%; text-align: left;">
							<input type="text" name="updateName" class="easyui-validatebox"
							style="width: 266px">
						</td>
					</tr> -->
				</tbody>
			</table>
		</div>
</body>
</html>